

from enum import Enum
from typing import Literal, Tuple
import logging


class AccountingType(Enum):
    "调账类型"
    DEPOSIT = (1, '充值')
    WITHDRAW = (2, '提现')
    TRANSFER = (3, '转账')
    ORDER_TRANSIT = (5, '订单金额在途')
    ORDER_DEDUCT = (15, '订单金额扣除')
    PROFIT_INIT = (7, '分润预入账')
    PROFIT_CREDIT = (6, '分润入账')
    PROFIT_UNFREEZE = (8, '分润解冻')
    PROFIT_REVOKE = (17, '分润撤销')
    MANUAL = (9, '人工调账')


class OrderType(Enum):
    "订单类型"
    PAY = (1, '支付')
    REFUND = (2, '退款')

class PayType(Enum):
    "支付类型"
    WX_SCAN = (1, '微信扫码')
    WX_QRCODE = (2, '微信被扫')
    DAIFU = (3, '代付')
    
class OrderStatus(Enum):
    "订单状态"
    INIT = (0, '初始化')
    SUCCESS = (1, '成功')
    FAIL = (2, '失败')
    PROCESSING = (3, '处理中')
    ABNORMAL = (5, '异常')
    CANCEL = (9, '取消')

class SubAccType(Enum):
    "子账户类型"
    BALANCE = (1, "余额账户")
    FROZEN = (2, "冻结账户")
    PENDING = (3, "在途资金账户")


class CertType(Enum):
    "证件类型"
    PERSON_ID = (1, '个人身份证')
    BIZ_LISCENSE = (2, '营业执照')

class SysType(Enum):
    "系统类型"
    SYS = ('SYS', '运营系统')
    OPENAPI = ('OPENAPI', '运营系统')
    FACTOR = ('FACTOR', '代理系统')
    MERC = ('MERC', '商户系统')


